Support shebang lines with amended environment
authorKévin Le Gouguec <kevin.legouguec@gmail.com>
Sat, 10 Feb 2024 16:56:57 +0000 (17:56 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Feb 2024 08:31:47 +0000 (10:31 +0200)
commitc64e650fb346d92294703d22f8cd7deb7c47b49e
treebfe1f04bdbf67a87c4465cb4f34eb4be87dcc5cd
parentecb9641ecb5f42899042ff9c164ec7dbb8e166fe
Support shebang lines with amended environment

For bug#64939.

* lisp/files.el (auto-mode-interpreter-regexp): Account for possible
VARIABLE=[VALUE] operands.
* test/lisp/files-tests.el (files-tests-auto-mode-interpreter):
Add an example from the coreutils manual.
lisp/files.el
test/lisp/files-tests.el